package com.wing.cabinet.model.response;

import com.baomidou.mybatisplus.annotation.TableField;
import com.wing.cabinet.model.entity.CellInventorySpace;
import com.wing.cabinet.utils.ExcelExport;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 售刀柜sku库存(某个柜子)VO
 *
 * @author
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
public class CellSingleInventoryProductVO {

    /**
     * ID
     */
    private Long id;

    /**
     * 创建时间
     */
    @JsonFormat(timezone = "GMT+8" , pattern = "yyyy-MM-dd HH:mm:ss" )
    private LocalDateTime createTime;

    /**
     * 创建者
     */
    private Long creator;

    /**
     * 修改者
     */
    private Long modifier;

    /**
     * 创建人
     */
    private String creatorName;

    /**
     * 修改人
     */
    private String modifierName;

    /**
     * 柜子id
     */
    private Long cabId;

    /**
     * sku id
     */
    private Long skuId;

    @ExcelExport(value = "库存(包装计)",sort = 80)
    private Integer quantity;

    /**
     * 企业id
     */
    private Long companyId;

    /**
     * 货道id
     */
    private Integer spaceId;

    /**
     * (0正常，1告警)
     */
    private Long status;

    /**
     * sku code
     */
    @ExcelExport(value = "物料编号",sort = 20)
    private String skuCode;

    /**
     * 柜子编码
     */
    @ExcelExport(value = "领新柜编码",sort = 70)
    private String cabCode;

    /**
     * 货道
     */
    private String spaceCode;
    /**
     * 柜子类型
     */
    private Integer cabinetNature;



    /**
     * sku 名称
     */
    @ExcelExport(value = "物料名称",sort =10)
    private String skuName;


    /**
     * sku 规格
     */
    private String skuSpec;

    /**
     * sku 图片
     */
    private String skuPic;

    /**
     * 产品名称
     */
    private String productName;

    /**
     * 产品类型名称
     */
    private String productTypeName;

    /**
     * 产品分类名称
     */
    private String productCategoryName;

    /**
     * 产品品牌
     */
    @ExcelExport(value = "品牌",sort = 40)
    private String productBrandName;

    /**
     * 产品型号
     */
    private String productModelName;

    /**
     * 适配机床
     */
    private String deviceName;

    /**
     * 市场价
     */
    private BigDecimal marketPrice;

    private Integer quantityMax;

    @ExcelExport(value = "包装单位",sort = 90)
    private String unitName;

    /**
     * 当前库存
     */
    private Long curentStock;

    /**
     * 告警库存
     */
    private Long alarmStock;

    /**
     * 计划补货
     */
    private Long planReplenishment;

    /**
     * 建议补货
     */
    private Long proposalStock;

    /**
     * 货道数量
     */
    private int cargoLaneNum;

    private List<CellInventorySpaceVO> detailList;

    private String skuCodeOld;

    @ExcelExport(value = "规格码",sort = 30)
    private String skuSpecOld;

    private Boolean showPriceFlag=true;

    /**
     * 所属主柜编码
     */
    @ExcelExport(value = "主柜编码",sort = 50)
    private String belongCabinet;

    /**
     * 企业自定义柜子名称
     */
    @ExcelExport(value = "领新柜名称",sort = 60)
    private String cabName;

    /**
     * 企业编码
     */
    private String enterpriseCode;

    private Integer quantitySetting;


    private BigDecimal weight;

    private BigDecimal weightSetting;

    /**
     * 归还时归还时长阈值
     */
    private Integer thresholdBlack;

    private Integer alThresholdBlack;

    /**
     *库存告警 id
     */
    private Long alarmId;

    private String oldSpecCode;
    private String mainCabCode;

    private String code;

    private String days;
    /**
     * 库存数量
     */
    @ExcelExport(value = "库存(基础单位计)",sort = 110)
    private Integer quantityPack;

    private Integer quantityPackUnit;


    private Long packId;
    @ExcelExport(value = "包装规格",sort = 100)
    private String packName;
    @ExcelExport(value = "基础单位",sort = 120)
    private String basicsUnitName;

    @ExcelExport(value = "总库存(包装计)",sort = 80)
    private Integer totalInventory;

    @ExcelExport(value = "总库存(基础单位计)",sort = 80)
    private Integer totalInventoryPack;
}
